package org.zch.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zch.dao.IdeaDAO;
import org.zch.entity.po.IdeaPO;
import org.zch.service.IdeaService;

import java.util.List;

/**
 * 用户信息
 */
@Service
public class IdeaServiceImpl implements IdeaService {

    @Autowired
    private IdeaDAO ideaDAO;


    @Override
    public Integer save(IdeaPO ideaPO) {
        return ideaDAO.insert(ideaPO);
    }

    @Override
    public Integer deleteById(Integer id) {
        return ideaDAO.deleteById(id);
    }

    @Override
    public List<IdeaPO> findAll() {
        return ideaDAO.selectList(null);
    }
}
